﻿<%@ Page Title=string.Empty Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<TemplateWeb.Models.ViewModels.GroupViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    TimKiemDonHang
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent1" runat="server">
    <span class="AdminTitle" style="color: #cc0000;">Tìm kiếm đơn hàng</span> (<a href="<%= Url.Action("Index", "Home") %>"
        class="AdminPageText">
        <%= WebConfiguration.SiteName  %>
    </a>| <a href="<%= Url.Action("LogOff", "Account") %>" class="AdminPageText">LogOut
    </a>)
    <br />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent2" runat="server">
    <%
        var idkhachhang = ViewData["IDKhachHang"] == null ? string.Empty : ViewData["IDKhachHang"].ToString();
        var khuvuc = ViewData["KhuVuc"] == null ? string.Empty : ViewData["KhuVuc"].ToString();
        var daxacnhan = ViewData["DaXacNhan"] == null ? string.Empty : ViewData["DaXacNhan"].ToString();
        var daxacnhan_value = ViewData["DaXacNhan_Value"] == null ? string.Empty : ViewData["DaXacNhan_Value"].ToString();
        var dagiaohang = ViewData["DaGiaoHang"] == null ? string.Empty : ViewData["DaGiaoHang"].ToString();
        var dagiaohang_value = ViewData["DaGiaoHang_Value"] == null ? string.Empty : ViewData["DaGiaoHang_Value"].ToString();
        var dahuy = ViewData["DaHuy"] == null ? string.Empty : ViewData["DaHuy"].ToString();
        var dahuy_value = ViewData["DaHuy_Value"] == null ? string.Empty : ViewData["DaHuy_Value"].ToString();
    %>
    <% using (Html.BeginForm("TimKiemDonHang", "Admin", FormMethod.Post))
       { %>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="AdminPageText">
        <tbody>
            <tr>
                <td>
                    <div align="left" style="padding-top: 15px">
                        <font class="normal8">ID Khách hàng: </font>
                    </div>
                </td>
                <td height="20" colspan="3">
                    <div align="left" style="padding-top: 15px">
                        <%= Html.TextBox("IDKhachHang", idkhachhang, new { @style = "width: 290px;" })%>
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <div align="left" style="padding-top: 15px">
                        <font class="normal8">Đã xác nhận: </font>
                    </div>
                </td>
                <td height="20">
                    <div align="left" style="padding-top: 15px">
                        <%= Html.CheckBox("DaXacNhan", daxacnhan.Equals(string.Empty) ? false : bool.Parse(daxacnhan))%> Áp dụng
                    </div>
                </td>
                <td height="20">
                    <div align="left" style="padding-top: 15px">
                        <%= Html.RadioButton("DaXacNhan_Value", true, daxacnhan_value.Equals(string.Empty) ? false : bool.Parse(daxacnhan_value) ? true : false)%> Có
                    </div>
                </td>
                <td height="20">
                    <div align="left" style="padding-top: 15px">
                        <%= Html.RadioButton("DaXacNhan_Value", false, daxacnhan_value.Equals(string.Empty) ? true : bool.Parse(daxacnhan_value) ? false : true)%> Không
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <div align="left" style="padding-top: 15px">
                        <font class="normal8">Đã giao hàng: </font>
                    </div>
                </td>
                <td height="20">
                    <div align="left" style="padding-top: 15px">
                        <%= Html.CheckBox("DaGiaoHang", dagiaohang.Equals(string.Empty) ? false : bool.Parse(dagiaohang))%> Áp dụng
                    </div>
                </td>
                <td height="20">
                    <div align="left" style="padding-top: 15px">
                        <%= Html.RadioButton("DaGiaoHang_Value", true, dagiaohang_value.Equals(string.Empty) ? false : bool.Parse(dagiaohang_value) ? true : false)%> Có
                    </div>
                </td>
                <td height="20">
                    <div align="left" style="padding-top: 15px">
                        <%= Html.RadioButton("DaGiaoHang_Value", false, dagiaohang_value.Equals(string.Empty) ? true : bool.Parse(dagiaohang_value) ? false : true)%> Không
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <div align="left" style="padding-top: 15px">
                        <font class="normal8">Đã hủy: </font>
                    </div>
                </td>
                <td height="20">
                    <div align="left" style="padding-top: 15px">
                        <%= Html.CheckBox("DaHuy", dahuy.Equals(string.Empty) ? false : bool.Parse(dahuy))%> Áp dụng
                    </div>
                </td>
                <td height="20">
                    <div align="left" style="padding-top: 15px">
                        <%= Html.RadioButton("DaHuy_Value", true, dahuy_value.Equals(string.Empty) ? false : bool.Parse(dahuy_value) ? true : false)%> Có
                    </div>
                </td>
                <td height="20">
                    <div align="left" style="padding-top: 15px">
                        <%= Html.RadioButton("DaHuy_Value", false, dahuy_value.Equals(string.Empty) ? true : bool.Parse(dahuy_value) ? false : true)%> Không
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <div align="left" style="padding-top: 15px">
                        <font class="normal8">Khu vực: </font>
                    </div>
                </td>
                <td height="20" colspan="3">
                    <div align="left" style="padding-top: 15px">
                        <%= Html.TextBox("KhuVuc", khuvuc, new { @style = "width: 290px;" })%>
                    </div>
                </td>
            </tr>
            <tr>
                <td height="20" style="width: 130px">
                </td>
                <td height="20" colspan="3">
                    <div align="left">
                        <br />
                        <p>
                            <input type="submit" name="sbt" id="sbt" value="Tìm kiếm" style="background-image: url(../../Content/Images/Home/bgbutton.jpg); color: #FFFFFF; font-size: 16px; font-weight: bold; border: 1px #DBDBDB solid; height: 30px; cursor: pointer;" />
                        </p>
                    </div>
                </td>
            </tr>
        </tbody>
    </table>
    <% } %>
    <% if (Model.DonDatHangModel != null)
       { %>
    <br />
    <br />
    <div id="PartialDiv">
        <% Html.RenderPartial("Templates/TH_ListSearchedOrders", Model); %>
    </div>
    <br />
    <br />
    <% } %>
</asp:Content>
